//
//  Primer_Enumerations_DemoVC.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/7/29.
//

import UIKit

class Primer_Enumerations_DemoVC: UIViewController {
    
    enum Animal {
        case bird
        case cat
        case dog
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        test1()
    }
    
    private func test1() {
        print("size: \(MemoryLayout<Animal>.size)")
        print("stride: \(MemoryLayout<Animal>.stride)")
        print("alignment: \(MemoryLayout<Animal>.alignment)")
        
        /**
         size: 1
         stride: 1
         alignment: 1
         */
    }

}



